package com.hh.demo.dto;

import com.hh.demo.util.AssertUtil;
import lombok.Data;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * @author 黄浩
 * @create 2022-07-18 8:40
 */
@Data
public class RegisterDto {
    @Pattern(regexp = AssertUtil.TEL_REGEX,message = "手机号不合法")
    private String mobile;
    @Size(min=6,max = 12,message = "密码的长度必须是6~12位")
    private String password;
    @Size(min=4,max = 4,message = "短信验证码必须是4位")
    private String smsCode;
    private String invitation;
    private Integer regChannel;
}
